/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2024 All Rights Reserved.
 */
package com.alipay.demo.service;

import com.alipay.api.AlipayApiException;
import com.alipay.api.response.AlipayMarketingImageListQueryResponse;
import com.alipay.api.response.AlipayMarketingImagedirectoryListQueryResponse;
import com.alipay.demo.vo.ImageDirectoryRequest;
import com.alipay.demo.vo.OpenResponse;

import java.util.List;

/**
 * @author jishupei.jsp
 * @version : ImageUploadService, v0.1 2024年03月14日 10:38 上午 jishupei.jsp Exp $
 */
public interface ImageUploadService {
    /**
     * 上传图片，返回imageId
     */
    String uploadAndReturnId(String imagePath, String uploadScene) throws AlipayApiException;

    /**
     * 创建图片空间目录
     */
    OpenResponse<String> createImageDirectory(ImageDirectoryRequest createRequest);

    /**
     * 修改图片空间目录
     */
    OpenResponse<Void> updateImageDirectory(ImageDirectoryRequest updateRequest);

    /**
     * 分页查询图片空间目录
     */
    OpenResponse<AlipayMarketingImagedirectoryListQueryResponse> queryImageDirectoryList(Long pageNum, Long pageSize, ImageDirectoryRequest queryRequest);

    /**
     * 修改图片信息
     */
    OpenResponse<Void> updateImage(String imageIndexId, String fileName, String imageDirectoryId);

    /**
     * 分页查询图片
     */
    OpenResponse<AlipayMarketingImageListQueryResponse> queryImageList(Long pageNum, Long pageSize, String imageIndexId, String fileName, String imageDirectoryId);

    /**
     * 删除图片
     */
    OpenResponse<Void> deleteImage(List<String> imageIndexIdList);
}
